﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Toolkit.Mvvm.DependencyInjection;
using NK.Tools.Core.Services;

namespace NK.Tools.WinUI3.Startup
{
    public static class DI
    {
        public static void ConfigureServices()
        {
            var serviceCollections = new ServiceCollection();
            RegisterServices(serviceCollections);

            var serviceProvider = serviceCollections.BuildServiceProvider();
            Ioc.Default.ConfigureServices(serviceProvider);
        }

        private static void RegisterServices(ServiceCollection serviceCollections)
        {
            serviceCollections.AddTransient<ITestService, TestService>();
        }
    }
}
